/**
 * 
 */
package org.william.common_boot.self_property;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/** 
 * Description: 
 * @author xuhongwei
 * @version 1.0
 * <pre>
 * Modification History: 
 * Date         Author      Version     Description 
------------------------------------------------------------------
 * 2018年8月3日    xuhongwei     1.0        1.0 Version 
 * </pre>
 */
@RestController
@RequestMapping("propertyControl")
public class PropertyControl {
	
	@Autowired
	WilliamProperty william;
	
	@RequestMapping(value="/testProperty" , method={RequestMethod.GET,RequestMethod.POST})
	public Object printPropertyValue(){
			
		System.out.println(william.getTitle());

		System.out.println(william.getDesc());
		
		/** 在spring boot 中可以直接返回对象，默认为json格式*/
		return  william ;
	}
	
}
